package com.itheima.d1_create_thread;

/**
 * 定义一个任务类，实现Runnable接口
 */
public class MyRunnable implements Runnable{
    //重写run
    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println("子线程输出===》"+ i);
        }
    }
}
